import React from 'react'

class Button extends React.Component {
   // eslint-disable-next-line no-useless-constructor
   constructor(props) {
    super(props);
}
   static defaultProps = {
    color: 'blue',
    text: '点赞'
}   

   render() {
       return(
           <button style={{background:'yellow',fontSize:'20px',color:`${this.props.color}`}}>
              <em>{this.props.text}</em>
           </button>
       );
   }
}

export default Button